var config = require('../config');
var mongoose = require('mongoose');

mongoose.connect(config.db, function (error) {
    console.log(error);
});


require('./position');
require('./worker');
require('./serie');
require('./member');
require('./manager');

exports.Position = mongoose.model('Position');
exports.Worker = mongoose.model('Worker');
exports.Serie = mongoose.model('Serie');
exports.Member = mongoose.model('Member');
exports.Manager = mongoose.model('Manager');